package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.RoutinePathologyBm;
import com.zhijian.medical.entity.vo.request.RoutinePathologyBmSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.RoutinePathologyBmSearchVo;
import com.zhijian.medical.entity.vo.response.RoutinePathologyBmInfoVo;
import com.zhijian.medical.entity.vo.response.RoutinePathologyBmVo;
import com.zhijian.util.page.Page;

import java.util.List;

/**
 * 常规病例包埋 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-06-23 14:54:15
 */
public interface RoutinePathologyBmService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    RoutinePathologyBm selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    RoutinePathologyBmVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 按照主键批量删除
     *
     * @param idList
     */
    void deleteByIdList(List<Long> idList);

    /**
     * 新增
     *
     * @param routinePathologyBm
     * @return
     */
    Long insert(RoutinePathologyBm routinePathologyBm);

    /**
     * 动态新增
     *
     * @param routinePathologyBm
     * @return
     */
    Long insertSelective(RoutinePathologyBm routinePathologyBm);

    /**
     * 更改
     *
     * @param routinePathologyBm
     * @return
     */
    boolean update(RoutinePathologyBm routinePathologyBm);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(RoutinePathologyBm record);

    /**
     * 保存
     *
     * @param saveOrUpdateVo
     * @return
     */
    boolean save(RoutinePathologyBmSaveOrUpdateVo saveOrUpdateVo);

    /**
     * 编辑
     *
     * @param saveOrUpdateVo
     * @return
     */
    boolean modify(RoutinePathologyBmSaveOrUpdateVo saveOrUpdateVo);

    /**
     * 列表
     *
     * @param routinePathologyBmSearchVo
     * @return
     */
    RoutinePathologyBmVo selectOne(RoutinePathologyBmSearchVo routinePathologyBmSearchVo);

    /**
     * 总数
     *
     * @param routinePathologyBmSearchVo
     * @return
     */
    Integer count(RoutinePathologyBmSearchVo routinePathologyBmSearchVo);

    /**
     * 列表
     *
     * @param routinePathologyBmSearchVo
     * @return
     */
    List<RoutinePathologyBmVo> selectList(RoutinePathologyBmSearchVo routinePathologyBmSearchVo);

    /**
     * 分页查询
     *
     * @param routinePathologyBmSearchVo
     * @return
     */
    Page<RoutinePathologyBmVo> selectPage(RoutinePathologyBmSearchVo routinePathologyBmSearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<RoutinePathologyBm> entities);

    /**
     * 动态删除，慎重用此方法！！
     *
     * @param routinePathologyBmSearchVo
     * @return
     */
    void deleteByCondition(RoutinePathologyBmSearchVo routinePathologyBmSearchVo);

    /**
     * 输入蜡块号
     * @param numbers
     * @return
     */
    RoutinePathologyBmInfoVo pathologyInfo(String numbers);
}